from BlueFoxTools.ToolsConfig import *
from BlueFoxTools.SpecialFunciton.BlueFoxSystem import BlueFoxClientSystem
from BlueFoxTools.SystemTools import SystemTools


class TestClient(BlueFoxClientSystem):
    systemTool = SystemTools.GetTools('TestClient')
    mcListener = systemTool.ListenForEvent()

    def __init__(self, *args):
        super(TestClient, self).__init__(*args)
        self.systemTool.Binding(self)

    @mcListener
    def PlayerTryDestroyBlockClientEvent(self, args):
        clientApi.PushScreen(MOD_NAME, 'TestUi')
